
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Boom调试【更新中】 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../paper_read/prefetch-guard.html" />
    
    
    <link rel="prev" href="chipyard-install.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">前言</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">BoomV3</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="chipyard-install.html">
            
                <a href="chipyard-install.html">
            
                    
                    Chipyard 1.8.0安装教程
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.2" data-path="boom-debug.html">
            
                <a href="boom-debug.html">
            
                    
                    Boom调试【更新中】
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">论文阅读</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../paper_read/prefetch-guard.html">
            
                <a href="../paper_read/prefetch-guard.html">
            
                    
                    Prefetch-guard
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Gem5 学习</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../gem5/gem5_fs.html">
            
                <a href="../gem5/gem5_fs.html">
            
                    
                    X86 全系统模式模拟
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../gem5/custom_disk_img.html">
            
                <a href="../gem5/custom_disk_img.html">
            
                    
                    自定义磁盘镜像
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">一生一芯FangCore实现</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../ysyx/FangCore/1单周期CPU.html">
            
                <a href="../ysyx/FangCore/1单周期CPU.html">
            
                    
                    单周期CPU实现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../ysyx/FangCore/2五级流水.html">
            
                <a href="../ysyx/FangCore/2五级流水.html">
            
                    
                    顺序五级流水CPU设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../ysyx/FangCore/3乘除法器.html">
            
                <a href="../ysyx/FangCore/3乘除法器.html">
            
                    
                    乘除法功能单元
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="../ysyx/FangCore/4AXI4总线.html">
            
                <a href="../ysyx/FangCore/4AXI4总线.html">
            
                    
                    AXI4总线
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="../ysyx/FangCore/5高速缓存Cache.html">
            
                <a href="../ysyx/FangCore/5高速缓存Cache.html">
            
                    
                    高速缓存Cache设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="../ysyx/FangCore/6中断异常.html">
            
                <a href="../ysyx/FangCore/6中断异常.html">
            
                    
                    简单的中断异常支持
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.7" data-path="../ysyx/FangCore/7分支预测器.html">
            
                <a href="../ysyx/FangCore/7分支预测器.html">
            
                    
                    分支预测器
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Boom调试【更新中】</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="boom&#x8C03;&#x8BD5;&#x8FC7;&#x7A0B;&#x66F4;&#x65B0;&#x4E2D;">Boom&#x8C03;&#x8BD5;&#x8FC7;&#x7A0B;[&#x66F4;&#x65B0;&#x4E2D;]</h1>
<h2 id="1&#x3001;&#x751F;&#x6210;&#x6CE2;&#x5F62;&#x6587;&#x4EF6;">1&#x3001;&#x751F;&#x6210;&#x6CE2;&#x5F62;&#x6587;&#x4EF6;</h2>
<ul>
<li>&#x8FD0;&#x884C;<code>make help</code>&#x67E5;&#x770B;&#x5E2E;&#x52A9;&#x6587;&#x6863;</li>
<li>&#x53EF;&#x5C1D;&#x8BD5;&#x9605;&#x8BFB;<code>chipyard/sims/verilator/Makefile</code>&#x3001; <code>chipyard/common.mk</code>&#x3001; <code>chipyard/variables.mk</code> &#x5DF2;&#x7ECF;&#x7F16;&#x8BD1;&#x65F6;&#x6253;&#x5370;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x7406;&#x89E3;&#x7F16;&#x8BD1;&#x8FC7;&#x7A0B;&#x3002;</li>
<li><code>chipyard/generators/chipyard/src/main/resources/csrc/emulator.cc</code>&#x4E3A;verilator&#x7684;&#x4EFF;&#x771F;&#x6587;&#x4EF6;</li>
<li>&#x6700;&#x7EC8;&#x5728;<code>chipyard/sims/verilator/output</code>&#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x751F;&#x6210;&#x65E5;&#x5FD7;&#x6587;&#x4EF6;&#x548C;&#x6CE2;&#x5F62;&#x6587;&#x4EF6;</li>
</ul>
<pre><code class="lang-shell">cd sims/verilator
make debug CONFIG=SmallBoomConfig run-binary-debug BINARY=[BINARY_NAME]
</code></pre>
<h2 id="2&#x3001;&#x8F6C;&#x6362;&#x6587;&#x4EF6;&#x683C;&#x5F0F;">2&#x3001;&#x8F6C;&#x6362;&#x6587;&#x4EF6;&#x683C;&#x5F0F;</h2>
<p>&#x751F;&#x6210;&#x7684;VCD&#x6CE2;&#x5F62;&#x6587;&#x4EF6;&#x592A;&#x5927;&#x4E86;&#xFF0C;&#x5361;&#x4E86;&#x534A;&#x5929;&#x4E5F;&#x6CA1;&#x6709;&#x6253;&#x5F00;&#x3002;&#x6839;&#x636E;&#x63D0;&#x793A;&#xFF0C;&#x8F6C;&#x4E3A;fst&#x683C;&#x5F0F;&#x7684;&#x6587;&#x4EF6;&#x3002;</p>
<pre><code class="lang-shell">cd output
vcd2fst -v dcacheTest.vcd -f dcacheTest.fst
gtkwave dcacheTest.fst
</code></pre>
<p>&#x518D;&#x6B21;&#x6253;&#x5F00;&#xFF0C;&#x975E;&#x5E38;&#x6EF4;&#x5FEB;&#x901F;&#x3002;</p>
<p><img src="https://cdn.jsdelivr.net/gh/fangjiangff/images/img/202210111640682.png" alt="image-20221011164008444" style="zoom:80%;"></p>
<h2 id="3&#x3001;&#x627E;&#x5230;boomcore">3&#x3001;&#x627E;&#x5230;BoomCore</h2>
<p>&#x751F;&#x6210;&#x7684;&#x662F;&#x6574;&#x4E2A;Soc&#x7CFB;&#x7EDF;&#xFF0C;BoomCore&#x53EA;&#x662F;&#x5176;&#x4E2D;&#x7684;&#x5C0F;&#x90E8;&#x5206;&#x3002;</p>
<p>BoomCore&#x6240;&#x5728;&#x4F4D;&#x7F6E;&#xFF1A;Top&#x2014;&#x2014;&gt;TestHarness&#x2014;&#x2014;&gt;chiptop&#x2014;&#x2014;&gt;system&#x2014;&#x2014;&gt;tile_prci_domain&#x2014;&#x2014;&gt;tile_reset_domian&#x2014;&#x2014;&gt;boom_tile</p>
<p><img src="https://cdn.jsdelivr.net/gh/fangjiangff/images/img/202210111654524.png" alt="image-20221011165410492"></p>
<p>&#x5C31;&#x53EF;&#x4EE5;&#x627E;&#x5230;&#x5177;&#x4F53;&#x6A21;&#x5757;&#x7684;&#x5177;&#x4F53;&#x8F93;&#x5165;&#x8F93;&#x51FA;&#x4FE1;&#x53F7;&#xFF0C;&#x67E5;&#x770B;&#x6BCF;&#x4E2A;&#x5468;&#x671F;&#x7684;&#x53D8;&#x5316;&#x3002;&#x6BD4;&#x5982;&#xFF0C;&#x4F9D;&#x6B21;&#x5C55;&#x5F00;&#x6A21;&#x5757;<code>boom_tile-&gt;fronted-&gt;f3</code>&#x3002;&#x70B9;&#x51FB;f3&#xFF0C;&#x5DE6;&#x4E0B;&#x65B9;&#x7684;&#x6846;&#x6846;&#x91CC;&#x5C06;&#x4F1A;&#x51FA;&#x73B0;&#x8BE5;&#x6A21;&#x5757;&#x7684;&#x6240;&#x6709;&#x4FE1;&#x53F7;&#xFF0C;&#x70B9;&#x51FB;ram_pc[0]&#xFF0C;&#x5C31;&#x80FD;&#x5728;&#x53F3;&#x8FB9;&#x770B;&#x5230;&#x6CE2;&#x5F62;&#x3002;</p>
<p>&#x503C;&#x5F97;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;n&#x591A;&#x4E2A;&#x5468;&#x671F;&#x540E;&#xFF0C;&#x624D;&#x4F1A;&#x4ECE;8000_0000&#x5904;&#x6267;&#x884C;&#x6211;&#x4EEC;&#x81EA;&#x5DF1;&#x5199;&#x7684;&#x4EE3;&#x7801;&#x3002;</p>
<p><img src="https://cdn.jsdelivr.net/gh/fangjiangff/images/img/202210111723404.png" alt="image-20221011172330319" style="zoom: 80%;"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="chipyard-install.html" class="navigation navigation-prev " aria-label="Previous page: Chipyard 1.8.0安装教程">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../paper_read/prefetch-guard.html" class="navigation navigation-next " aria-label="Next page: Prefetch-guard">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Boom调试【更新中】","level":"2.2","depth":1,"next":{"title":"Prefetch-guard","level":"3.1","depth":1,"path":"paper_read/prefetch-guard.md","ref":"paper_read/prefetch-guard.md","articles":[]},"previous":{"title":"Chipyard 1.8.0安装教程","level":"2.1","depth":1,"path":"BoomCode/chipyard-install.md","ref":"BoomCode/chipyard-install.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"BoomCode/boom-debug.md","mtime":"2022-10-11T09:33:10.517Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-04-12T09:28:35.525Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

